projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
138e958
)
im context: Fix compiler warnings
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 31 May 2015 01:27:05 +0000
(21:27 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 2 Jun 2015 13:08:15 +0000
(09:08 -0400)
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
gtk/gtkimcontextsimple.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimcontextsimple.c
b/gtk/gtkimcontextsimple.c
index 4b7de112ec757aedb3b16abd43f550dcb1731a4b..8ddbdc42a931605ad2f405ca9c5b840d1ff52fe7 100644
(file)
--- a/
gtk/gtkimcontextsimple.c
+++ b/
gtk/gtkimcontextsimple.c
@@
-961,11
+961,8
@@
gtk_im_context_simple_filter_keypress (GtkIMContext *context,
(priv->in_hex_sequence && !hex_keyval &&
!is_hex_start && !is_hex_end && !is_escape && !is_backspace))
{
- GdkDisplay *display;
GdkModifierType no_text_input_mask;
- display = gdk_window_get_display (event->window);
-
no_text_input_mask =
gdk_keymap_get_modifier_mask (gdk_keymap_get_for_display (display),
GDK_MODIFIER_INTENT_NO_TEXT_INPUT);